package com.cn.xiaonuo.slbfinances.slborders.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slborders.param.ExpiredErrorParam;
import com.cn.xiaonuo.slbfinances.slborders.service.ExpiredErrorService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: slb-reports-java
 * @Author: likui
 * @CreateTime: 2022-05-25  13:17
 * @Description: TODO
 */
@RestController
public class ExpiredErrorController {

    @Autowired
    private ExpiredErrorService expiredErrorService;

    @ApiOperation(value = "搜了宝订单管理--异常订单列表", notes = "搜了宝订单管理--异常订单列表")
    @PostMapping(value = "/api/slbExpiredError/expiredErrorList")
    public BusinessMessage expiredErrorList(@RequestBody ExpiredErrorParam expiredErrorParam) {
        return expiredErrorService.expiredErrorList(expiredErrorParam);
    }

    @ApiOperation(value = "搜了宝订单管理--异常订单处理", notes = "搜了宝订单管理--异常订单处理")
    @PostMapping(value = "/api/slbExpiredError/exceptionHandling")
    public BusinessMessage exceptionHandling(@RequestBody ExpiredErrorParam expiredErrorParam) {
        return expiredErrorService.exceptionHandling(expiredErrorParam);
    }
}
